using System.ComponentModel.DataAnnotations;
using SqlSugar;

namespace FytSoa.Domain.Crm;

/// <summary>
/// 项目-发票信息
/// </summary>
[SugarTable("crm_invoice_info")]
public class CrmInvoiceInfo:Entity
{
    /// <summary>
    /// 客户管理
    /// </summary>
    [Required]
    public long CustomerId { get; set; }

    /// <summary>
    /// 抬头类型（单位/个人）
    /// </summary>
    [Required]
    [StringLength(20)]
    public string TypeId { get; set; }

    /// <summary>
    /// 发票抬头
    /// </summary>
    [Required]
    [StringLength(100)]
    public string Header { get; set; }

    /// <summary>
    /// 纳税人识别号
    /// </summary>
    [Required]
    [StringLength(50)]
    public string TaxNumber { get; set; }

    /// <summary>
    /// 开户行
    /// </summary>
    [Required]
    [StringLength(50)]
    public string OpeningBank { get; set; }

    /// <summary>
    /// 银行账号
    /// </summary>
    [Required]
    [StringLength(50)]
    public string BankNumber { get; set; }

    /// <summary>
    /// 开票地址
    /// </summary>
    public string Address { get; set; }

    /// <summary>
    /// 电话
    /// </summary>
    public string Phone { get; set; }

    /// <summary>
    /// 创建人
    /// </summary>
    public string CreateUser { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;

    /// <summary>
    /// 更新人
    /// </summary>
    public string UpdateUser { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }


}